package com.example.demo.service.Impl;

import com.example.demo.mapper.AgePatientMapper;
import com.example.demo.module.entity.AgePatient;
import com.example.demo.service.AgePatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgePatientServiceImpl implements AgePatientService {
    @Autowired
    private AgePatientMapper agePatientMapper;

    @Override
    public List<AgePatient> findAll() throws Exception {
        return agePatientMapper.selectAll();
    }
}
